apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Values.app_name }}
  labels:
    app: {{ .Values.app_name  }}
spec:
  replicas: {{ .Values.replicaCount }}
  selector:
    matchLabels:
      app:  {{.Values.app_name  }}
  template:
    metadata:
      labels:
        app:  {{.Values.app_name  }}
    spec:
      containers:
        - name: {{ .Values.app_name }}
          image: {{ .Values.image }}
          ports:
            - name: http
              containerPort: {{ .Values.port}}
              protocol: TCP
          resources:
            {{- toYaml .Values.resources | nindent 12 }}
